import json

# 读取JSON文件
with open('datasets/cat.json', 'r', encoding='utf-8') as f:
    data = json.load(f)

# 为每条记录添加"input": ""
for item in data:
    item["input"] = ""

# 保存修改后的数据
with open('datasets/cat_new.json', 'w', encoding='utf-8') as f:
    json.dump(data, f, ensure_ascii=False, indent=2)

print("字段添加完成！保存为 cat_updated.json")
